package sctu.edu.java.year2016.team07.nieying.practice.Review;

/**
 * Created by Administrator on 2016/6/16 0016.
 */
public class MinNum {
    public static void main(String[] args){
        int[] arr={1,2,0,-7,6};
        System.out.println("输出一维数组:\n");
        for(int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
            int min=arr[0];
            for(int j=0;j<arr.length-1;j++) {
                if (min>arr[j+1]) {
                     min=arr[j+1];

                }
            }
            System.out.println(min);
        }
    }
}
